<div class="painel30">
<%= titulo_form "Estado Civil" %>

<div class="paineldecontrole">
  <%= link_to image_tag('novo.gif'), new_ec_path %>
</div>

<table cellpadding="0" cellspacing="0" width="100%">
  <%= cabecalho_tabela "Código","Nome" %>

  <% @ecs.each do |ec| %>
    <tr>
      <td><%=h ec.id %></td>
      <td><%=h ec.nome %></td>
      
      <td>
        
        <%= link_to image_tag('editar.gif'), edit_ec_path(ec) %>
        <%= link_to image_tag('remover.gif'), ec, :confirm => 'Are you sure?', :method => :delete %>
      </td>
    </tr>
  <% end %>
</table>
<div class="paineldecontrole">
  <%= will_paginate @ecs %>
</div>
</div>